package com.ruoyi.shop.common.constant;

/**
 * 商城通用常量
 * 
 * @author xuxiang
 */
public class ShopConstants {

	/** --------------------商城默认状态常量---------------------- */
	/** 商城默认值 */
	public static final String DEFAULT = "default";

	/** 商城是与否标识 */
	public static final Integer YES = 0;
	public static final Integer NO = 1;

	/**
	 * 商城分类-类型常量
	 */
	public static final Integer SHOP_CATEGORY_TYPE_GOODS = 1; // 商品分类
	public static final Integer SHOP_CATEGORY_TYPE_CMS = 2;   // 文章分类(栏目)

	/**
	 * 商城商品类型
	 */
	public static final Integer SHOP_GOODS_TYPE_NORMAL = 0; // 普通商品

	/**
	 * 商城素材类型
	 */
	public static final Integer SHOP_MATERIAL_TYPE_IMAGE = 1;// 图片素材
	public static final Integer SHOP_MATERIAL_TYPE_VIDEO = 2;// 视频素材
	public static final Integer SHOP_MATERIAL_TYPE_TEXT = 3;// 文本素材
	public static final Integer SHOP_MATERIAL_TYPE_AUDIO = 4;// 音频素材
	public static final Integer SHOP_MATERIAL_TYPE_ZIP = 5; // 压缩素材
	public static final Integer SHOP_MATERIAL_TYPE_OTHER = 6;// 其它素材

	/**
	 * 会员喜爱类型
	 */
	public static final String SHOP_FAVOR_TYPE_COLLECT = "collect";// 收藏
	public static final String SHOP_FAVOR_TYPE_LIKE = "like";// 点赞

	/**
	 * 商城规格类型
	 */
	public static final Integer SHOP_SPEC_TYPE_SINGLE = 0; // 单规格
	public static final Integer SHOP_SPEC_TYPE_MULTI = 1; // 多规格

	/**
	 * 商城属性类型
	 */
	public static final Integer SHOP_ATTRIBUTE_TYPE_SPEC = 0; // 商品规格
	public static final Integer SHOP_ATTRIBUTE_TYPE_PARAM = 1;// 商品参数

	/**
	 * 商品评价类型
	 */
	public static final Integer SHOP_EVALUATE_TYPE_GOOD = 1;// 好评
	public static final Integer SHOP_EVALUATE_TYPE_FAIR = 2;// 中评
	public static final Integer SHOP_EVALUATE_TYPE_POOR = 3;// 差评

	/**
	 * 商品促销类型
	 */
	public static final String SHOP_PROMO_TYPE_HOT = "hot";// 热销商品
	public static final String SHOP_PROMO_TYPE_NEW = "new";// 首发新品
	public static final String SHOP_PROMO_TYPE_BEST = "best";// 精品推荐

	/**
	 * 商城登录-令牌相关
	 */
	public static final String TOKEN = "token";// 令牌
	public static final String TOKEN_PREFIX = "Bearer ";// 令牌前缀
	public static final String LOGIN_USER_KEY = "login_user_key";// 令牌前缀
	public static final Integer CAPTCHA_EXPIRATION = 2;// 验证码有效期（分钟）
	public static final String SHOP_DOMAIN_PREFIX = "#favor-shop#"; // 商城域名访问前缀
	public static final String URL = "url";// 链接地址

	/**
	 * 商城数据变动类型
	 */
	public static final Integer SHOP_DATA_CHANGE_TYPE_ADD = 1;// 增加
	public static final Integer SHOP_DATA_CHANGE_TYPE_SUB = -1;// 减少

	/**
	 * 商城业务类型
	 */
	public static final String SHOP_BUSINESS_TYPE_SIGN_IN = "signIn";// 签到
	public static final String SHOP_BUSINESS_TYPE_PAY_ORDER = "payOrder";// 支付订单

	/**
	 * 商城三方平台
	 */
	public static final String SHOP_PLATFORM_WECHAT = "wechat";// 微信平台

	/**
	 * 商城客户端类型
	 */
	public static final String SHOP_CLIENT_TYPE_MINI = "mini";// 小程序
	public static final String SHOP_CLIENT_TYPE_MP = "mp";// 公众号
	public static final String SHOP_CLIENT_TYPE_H5 = "h5";// h5手机端


	/**
	 * 商城下单类型
	 */
	public static final String SHOP_PREORDER_TYPE_SHOPCART = "shopCart"; // 购物车
	public static final String SHOP_PREORDER_TYPE_BUYNOW = "buyNow";// 理解购买

}
